package com.jk.lesson12;

import java.time.DayOfWeek;
import java.time.LocalDate;
import java.time.Month;

/**
 * Created by Auser on 2017/3/15.
 */
public class lesson_12_1 {
    public static void main(String[] args) {
        test_1();

    }

    private static void test_1(){
//        LocalDate date = LocalDate.of(2017, 3, 15);
        LocalDate date = LocalDate.now();
        int year = date.getYear();
        Month month = date.getMonth();
        int day = date.getDayOfMonth();
        DayOfWeek dow = date.getDayOfWeek();
        int len = date.lengthOfMonth();
        boolean leap = date.isLeapYear();
        int monthValue = date.getMonthValue();
        System.out.println(123);
    }
}
